﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<%@ Register TagPrefix="alicmsUC" TagName="Ime" Src="../../ime.dwt.ascx"%>
<%@ Register TagPrefix="alicmsUC" TagName="LanguageMenu" Src="../../language_menu.dwt.ascx"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ali:Get ID="Person" Object="Person" InnerID="Request.QueryString['ID']" Validate="True" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑个人</title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ali:Comment><link rel="stylesheet" type="text/css" href="../../S01/CHS/css/common.css" /></ali:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" />
<alicmsUC:Ime Ime="true" Eot="true" runat="server" />
<script type="text/javascript">
var _page = "person_edit";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _id = "<%=Request.QueryString["ID"]%>";
var _guid = "<%=Person[ID]%>";
var _regionLinkageData = {Element:"#Region select:first",Index:1,ID:"<%=Person[RegionID]%>",ParentChain:null,ParentChainPage:"../region/ajax_parent_chain.aspx?ID=<%=Person[RegionID]%>"};
var _industryLinkageData = {Element:"#Industry select:first",Index:1,ID:"<%=Person[IndustryID]%>",ParentChain:null,ParentChainPage:"../industry/ajax_parent_chain.aspx?ID=<%=Person[IndustryID]%>"};
var _tagAddList = new Array();
var _tagDeleteList = new Array();
var _tagAddIndex = 0;
var _tagDeleteIndex = 0;
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_name_empty = "名称不能空！";

var _tagIndex = 0;
var _tags = new Array();
<ali:List Object="Person.Tag" Condition="PersonID=Person[ID]">
	<ali:Record>
		_tags[_tags.length] = "<%=TagID%>";
	</ali:Record>
</ali:List>
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" /></div>
	<div class="Title"><a href="../person/list.aspx?Lang=<%=ContentLang%>">个人列表</a> → <span class="<%=ContentLang%>Font"><%=Person[Name]%></span></div>
	<div class="Right"></div>
</div>
<div class="Block">
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle">编辑</li>
		<li class="Right"></li>
	</ul>
	<form>
		<table border="0" cellpadding="4" cellspacing="1">
			<tfoot>
				<tr><td colspan="2"><input type="submit" value="编辑" /></td></tr>
			</tfoot>
			<tbody>
				<tr>
					<th width="120">名称：</th>
					<td><input type="text" name="Name" value="<%=Person[Name]%>" size="60" maxlength="150" class="Text <%=ContentLang%>Font" /></td>
				</tr>
				<tr>
					<th>所属行业：</th>
					<td id="Industry">
						<select class="<%=ContentLang%>Font">
							<option value="">-- 未指定行业 --</option>
								<ali:List Object="Industry" Condition="ParentID IS NULL">
									<ali:Record>
										<option value="<%=ID%>" InnerID="<%=InnerID%>"><%=Name%></option>
									</ali:Record>	
								</ali:List>
						</select>
					</td>
				</tr>
				<tr>
					<th>所属地区：</th>
					<td id="Region">
						<select name="Region" class="<%=ContentLang%>Font">
							<option value="">-- 未指定地区 --</option>
							<ali:List Object="Region" Condition="ParentID IS NULL">
								<ali:Record>
									<option value="<%=ID%>"><%=Name%></option>
								</ali:Record>
							</ali:List>
						</select>
					</td>
				</tr>
				<tr>
					<th>标签：</th>
					<td>
						<ali:List Object="Tag">
							<ali:Record>
								<input type="checkbox" name="Tag" id="<%=InnerID%>" value="<%=ID%>" /><label for="<%=InnerID%>"><%=Name%></label>
							</ali:Record>
						</ali:List>
					</td>
				</tr>
				<tr>
					<th>身份证：</th>
					<td><input type="text" name="Identity" value="<%=Person[Identity]%>" class="Text" /></td>
				</tr>
				<tr>
					<th>性别：</th>
					<td><input type="text" name="Sex" value="<%=Person[Sex]%>" class="Text" /></td>
				</tr>
				<tr>
					<th>生日：</th>
					<td><input type="text" name="Birthday" value="<%=Person[Birthday]%>" class="Text" /></td>
				</tr>
				<tr>
					<th>电话：</th>
					<td><input type="text" name="Phone" value="<%=Person[Phone]%>" class="Text" /></td>
				</tr>
				<tr>
					<th>手机：</th>
					<td><input type="text" name="Mobile" value="<%=Person[Mobile]%>" class="Text" /></td>
				</tr>
				<tr>
					<th>电子邮件：</th>
					<td><input type="text" name="Email" value="<%=Person[Email]%>" class="Text" /></td>
				</tr>
				<tr>
					<th>QQ：</th>
					<td><input type="text" name="QQ" value="<%=Person[QQ]%>" class="Text" /></td>
				</tr>
				<tr>
					<th>通讯地址：</th>
					<td><input type="text" name="Address" value="<%=Person[Address]%>" size="80" class="Text" /></td>
				</tr>
				<tr>
					<th>邮政编码：</th>
					<td><input type="text" name="Zip" value="<%=Person[Zip]%>" class="Text" /></td>
				</tr>
				<tr>
					<th>个人主页：</th>
					<td><input type="text" name="Homepage" value="<%=Person[Homepage]%>" size="50" class="Text" /></td>
				</tr>
				<tr>
					<th>简介：</th>
					<td>
						<textarea name="Profile" data-lang="<%=PageLang%>" data-content-lang="<%=ContentLang%>" data-browse-url="<%=AdminBrowserURL%>?Root=<%=InstanceID%>" class="editor"><%=HttpUtility.HtmlEncode(Person[Profile].ToString())%></textarea>
					</td>
				</tr>
			</tbody>
		</table>
	</form>
	<div class="Footer"></div>
</div>
<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>date_picker/date_picker.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<script type="text/javascript" src="<%=JsPath%>global.js"></script>
<script type="text/javascript" src="<%=ModuleJsPath%>module.js"></script>
</body>
</html>